from selenium.webdriver.common.by import By

from base import Base
class Page(Base):
    def sousuo(self):
        ele=(By.ANDROID_UIAUTOMATOR,'new UiSelector().text("搜商品名称 作者 出版社 ISBN")')
        loc=self.find_ele(ele)
        return loc
    def sousuokuang(self):
        ele=(By.CLASS_NAME,'android.widget.EditText')
        loc=self.find_ele(ele)
        return loc
    def dainpu(self):
        ele=(By.ID,'com.kongfz.app:id/fl4')
        loc=self.find_ele(ele)
        return loc
    def jindian(self):
        ele=(By.XPATH,'(//android.widget.TextView[@resource-id="com.kongfz.app:id/tvGo"])[1]')
        loc=self.find_ele(ele)
        return loc
    def lianxi(self):
        ele=(By.XPATH,'//android.widget.TextView[@text="联系卖家"]')
        loc=self.find_ele(ele)
        return loc
    def dy(self):
        ele=(By.ID,'com.kongfz.app:id/tv_greet')
        loc=self.find_ele(ele)
        return loc



